#include "StdAfx.h"
#include "MyClientSocket.h"
#include "..\Global.h"
#include "..\MsgDispatchCenter.h"
#include "..\NaviService.h"
extern CNaviServiceApp theApp;
CMyClientSocket::CMyClientSocket(void)
{
	m_nMsgRecv = WM_RECVFROM_DRIVER;
}
CMyClientSocket::CMyClientSocket(UINT MsgRecv)
{
	m_nMsgRecv = MsgRecv;
}
CMyClientSocket::~CMyClientSocket(void)
{
}
void CMyClientSocket::OnReceive()
{
    //::PostMessage(theApp.m_pMainWnd->m_hWnd,WM_RECVFROM_DRIVER,0,0);
	//printf("\nSocket Read Msg");
    //::PostThreadMessage(theApp.m_dwThreadID,WM_RECVFROM_DRIVER,0,0);
	 ::PostThreadMessage(theApp.m_dwThreadID,m_nMsgRecv,0,0);
}